package patientimport;

import com.bbcare.comm.OSSClientUtil;
import com.bbcare.comm.PropertiesUtils;

public class CreateDeptQrcode {

	public static void main(String[] args) {
		try {
			String departMentId ="bbb";
			String queueId=null;
			//测试地址
//			String url ="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx32d3aad2bc8fa216&redirect_uri=http://cloud.bb-care.com.cn/Scanning1/html/login.html&response_type=code&scope=snsapi_base&state="
//					+ queueId+"|"+departMentId+"#wechat_redirect";
			//正式地址
			String url ="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx32d3aad2bc8fa216&redirect_uri=http://cloud.bb-care.com.cn/Scanning/html/login.html&response_type=code&scope=snsapi_base&state="
					+ queueId+"|"+departMentId+"#wechat_redirect";
//			System.out.println(url);
			String qrcode = OSSClientUtil.uploadQrCode(url,PropertiesUtils.getProperty("departmentQrcode"), "png");
			System.out.println(qrcode);
		  }catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
